<?php

/**
 * @author Djordje Zeljic
 * Date: Jun 3, 2010 10:34:50 AM
 */
class rentacar_m extends Model {

    function rentacar_m () {
        parent::Model();
    }// construct of rentacar_m

    function create(){

    }

    function read($id, $cascaderead = FALSE){
        $this->db->select('*')->from('rentacar');
        if($cascaderead == TRUE): $this->db->join('insurancetype','insurancetype.id = rentacar.insuranceType','left');  endif;
        return $this->db->get()->row_array();
    }

    function readAll($cascaderead = FALSE){
        $this->db->select('*')->from('rentacar');
    }

    function update(){

    }

    function delete(){

    }
    
}
?>